<!--
  Generated template for the SettingPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
    <ion-navbar  style="opacity: 0.8" no-border-bottom color="primary">
    <ion-title>设置</ion-title>
  </ion-navbar>

</ion-header>

<ion-content class="bg-color">
  <ion-list class="top-list">
    <button ion-item [navPush]="userInfoPage" [navParams]="user">
      <ion-avatar item-left>
        <img src="{{user.avatar}}">
      </ion-avatar>
      <h2>{{user.nickname}}</h2>
      <p>账号：{{user.user_id}}</p>
    </button>
  </ion-list>
  <ion-list>
    <button ion-item [navPush]="myRepositoryPage">
    <ion-avatar item-left>
      <img src="assets/images/repositry.jpg">
    </ion-avatar>分享的知识
    </button>
    <!--
  <button ion-item [navPush]="myCustomerPage">
    <ion-avatar item-left>
      <img src="assets/images/khgl.jpg">
    </ion-avatar>经营的客户
  </button>
    -->
  </ion-list>
  <ion-list>
    <button ion-item  [navPush]="aboutPage">
      关于 </button>
  </ion-list>
  <div style="text-align: center; margin-left: 30px; margin-right: 30px;margin-top: 30px;">
  <button ion-button block (click)="logOut()"> 退出登录 </button>
  </div>
  </ion-content>
